package com.car.controller;

import com.car.entity.BRCGSeSuY;
import com.car.service.impl.BRCGSeSuYService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.text.SimpleDateFormat;


@Controller
public class BRCGSeSuYController {
    private SimpleDateFormat sdf= new SimpleDateFormat("yyyy");
    BRCGSeSuY date = new BRCGSeSuY();
    @Autowired
    @Qualifier("bRCGSeSuYService")
    private BRCGSeSuYService brcgSeSuYService;

    //业绩报表
    @RequestMapping(value = "brise")
    public String brcgsyfindAll(Model model, BRCGSeSuY brcgSeSuY){

        BRCGSeSuY brcgSeSuY1 = brcgSeSuYService.bfindAll(brcgSeSuY);
        BRCGSeSuY brcgSeSuY2 = brcgSeSuYService.rfindAll(brcgSeSuY);
        BRCGSeSuY brcgSeSuY3 = brcgSeSuYService.cfindAll(brcgSeSuY);
        BRCGSeSuY brcgSeSuY4 = brcgSeSuYService.gfindAll(brcgSeSuY);
        BRCGSeSuY brcgSeSuY5 = brcgSeSuYService.sefindAll(brcgSeSuY);
        BRCGSeSuY brcgSeSuY6 = brcgSeSuYService.sufindAll(brcgSeSuY);
        BRCGSeSuY brcgSeSuY7 = brcgSeSuYService.yfindAll(brcgSeSuY);

        model.addAttribute("b1",brcgSeSuY1);
        model.addAttribute("b2",brcgSeSuY2);
        model.addAttribute("b3",brcgSeSuY3);
        model.addAttribute("b4",brcgSeSuY4);
        model.addAttribute("b5",brcgSeSuY5);
        model.addAttribute("b6",brcgSeSuY6);
        model.addAttribute("b7",brcgSeSuY7);
        return "business_Chart.jsp";
    }
}
